//作业一
import java.util.Scanner;
import java.util.Arrays;
public class ZouYeYiTest{
	
	public static void main(String[] arge){
		System.out.println("请分别输入年月日");
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int e=28;
		int f=0;
		if((0==a%4&&0!=a%100)||(0==a%400)){
			e=29;
		}
		int[] d = {31,e,31,30,31,30,31,31,30,31,30,31};
		for(int i=0;i<b-1;i++){
			f += d[i];
		}
		System.out.println("这是一年的第"+(f+c)+"天");
	}
}


//作业二
public class ZouYeErTest{
	
	public static void main(String[] arge){
		System.out.println("1-1000之间的完数是：");
		for(int i=1;i<1001;i++){
			int a =0;
			for(int j=1;j<i;j++){
				if(0==i%j){
					a += j;
					}
				}
				if(a==i){
				System.out.println(i);
				}
		}
	}
}

//作业三
import java.util.Random;
public class ZuoYeSanTest{
	
	public static void main(String[] arge){
		Random sc = new Random();
		int[] a = new int[6];
		int b =0;
		System.out.print("6个不重复的红球的号码分别是：");
        for(int i=0;i<a.length;i++){
			a[i] = sc.nextInt(33)+1;
			for(int j=0;j<i;j++){
				if(a[i]==a[j]){
					a[i] = sc.nextInt(33)+1;
				}
			}
			System.out.print(a[i]+" ");
		}
		System.out.println();
		int d = sc.nextInt(16)+1;
		System.out.println("1个蓝球的号码是："+d);
	}	
}

//作业四
import java.util.Scanner;
import java.util.Arrays;
public class ZouYeSiTest{
	
	public static void main(String arge[]){
		
		System.out.println("请输入数组的初始容量");
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int[] b = new int[a];
		int c = 0;
		for(int i=0;i<b.length;i++){
			System.out.println("请往数组中存数");
			b[i]= sc.nextInt();
			c += 1;
			System.out.println(Arrays.toString(b));
			if(c*1.0/b.length>=0.8){
				 a = (int)(a*1.5);
				 int[] d = new int[a];
				 b=d;
				System.out.println(Arrays.toString(b)); 
			}
		}
	}
}

//作业五：
public class ZouYeWuTest{
	public static void main(String arge[]){
		char[] a= {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
		System.out.print("   ");
		for(int h=0;h<16;h++){
			System.out.print(" "+a[h]+" ");
		}
		System.out.println();
		for(int i=0;i<16;i++){
			System.out.print(" "+a[i]+" ");
			for(int j=0;j<16;j++){
					
			System.out.print(" "+"+"+" ");
			}	
			System.out.println();
		}
	}	
}